<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改产品账单信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-billProduct-edit" th:object="${billInfoProduct}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">日期：</label>
                <div class="col-sm-8">
                    <input th:field="*{dateInfo}" readonly class="form-control" type="text" required>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">产品ID：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="productId" th:field="*{productId}" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">产品名称：</label>
                <div class="col-sm-8">
                    <input  th:field="*{productName}" readonly class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">系统消耗量：</label>
                <div class="col-sm-8">
                    <input  th:field="*{sysNumber}" readonly class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">系统消耗金额：</label>
                <div class="col-sm-8">
                    <input th:field="*{sysAmount}" readonly class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">单价：</label>
                <div class="col-sm-8">
                    <input name="price" th:field="*{price}" readonly class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">实际消耗量：</label>
                <div class="col-sm-8">
                    <input name="realNumber" th:field="*{realNumber}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">实际消耗金额 ：</label>
                <div class="col-sm-8">
                    <input name="realAmount" th:field="*{realAmount}" class="form-control" type="text" required>
                </div>
            </div>

<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label is-required">状态 ：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select class="form-control" th:field="*{status}"  name="status">-->
<!--                        <option value="0">待确认</option>-->
<!--                        <option value="1">待入账</option>-->
<!--                    </select>-->
<!--                </div>-->
<!--                <span style="color: red">说明：待入账状态下，不会更新账单最新信息。需要更新账单信息，需调整为待确认状态</span>-->
<!--            </div>-->

<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">预付金额：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="payAmount" th:field="*{payAmount}" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">现余额：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="balanceAmount" th:field="*{balanceAmount}" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="creatorId" th:field="*{creatorId}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="creatorName" th:field="*{creatorName}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="updateId" th:field="*{updateId}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="updateName" th:field="*{updateName}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "account/billProduct";
        $("#form-billProduct-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-billProduct-edit').serialize());
            }
        }

    </script>
</body>
</html>